/**************************
* @Summary
* @Author 20009200303 赵传博
* @Date 6/8/2022
* @Note
*****************************/

#ifndef EX6_EXPR_H
#define EX6_EXPR_H
#include "Parser.h"

class Expr {
private:
    ExprNode* root;
public:
    ExprNode *getRoot() const;
    Expr(const char* str);

    double calculateVal();


    void print_mid();
    void print_postfix();
    void print_prefix();
};


#endif //EX6_EXPR_H
